<?php
function getTyp($typeId) {
    switch ($typeId) {
        case 1:
            return "月卡";
        case 2:
            return "年卡";
        case 3:
            return "永久卡";
        default:
            return "未知";
    }
}
?>